package test;
import java.util.Scanner;
public class Count {
    public static void main(String[] args) {
        //键入
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();
        //统计字符串中大写，小写和数字的个数
        int Acount = 0;
        int acount = 0;
        int mathcount = 0;

        for(int i =0 ; i <str.length() ; i++){
            char c = str.charAt(i);
            if(c >='A' && c<= 'Z'){
                Acount++;
            }
            else if(c >='a' && c<= 'z'){
                acount++;
            }
            else if(c >='0' && c<='9'){
                mathcount++;
            }
        }
        System.out.println("<UNK>"+Acount+"<UNK>");
        System.out.println("<UNK>"+acount+"<UNK>");
        System.out.println("<UNK>"+mathcount+"<UNK>");
    }
}
